{include(file='header.tpl')}
                 <div id="optionsidebar" class="group">
                    <form action="{$map_url}" method="post" id="map_props">
                      <ul class="sidebar_list">
                          <li>
                            <h3>{$language_heading_region_settings}</h3>
                            <ul>
                                <li>
                                  <label for="available_layers">{$language_label_available_layers}</label>:
                                    <select id="available_layers" name="available_layers">
                                        {foreach $arr_maps key value}
                                            <option value="{$key}"{if $map_id == $key} selected{/if}>{$value}</option>
                                        {/foreach}
                                    </select>
                                </li>
                                <li style="margin-bottom: 1.5em;">
                                    <input type="checkbox" name="query_only_layer" id="query_only_layer" value="1" {if $arr_checked_values.query_only_layer} checked{/if} />
                                    <label for="query_only_layer">{$language_label_query_layers}</label>
                                </li>
                                <li>
                                    <label for="t_thema">{$language_label_globaltopics}</label>
                                    <select name="global" id="t_thema">
                	                   <option value="0"{if $arr_checked_values.tg_id == 0} selected="selected"{/if}>{$language_option_globaltopics_choose_all}</option>
                	                   {foreach $arr_topics_global key item}
                                       <option value="{$item.tag_id}"{if $arr_checked_values.tg_id == $item.tag_id} selected="selected"{/if}>{$item.tag_name}</option>
                                       {/foreach}
                	               </select>
                	           </li>
                	           <li>
                	               <label for="t_thema2">{$language_option_project}</label>
                	               <select name="topic" id="t_thema2">
                	                   <option value="0"{if $arr_checked_values.t_id == 0} selected="selected"{/if}>{$language_option_project_choose_all}</option>
                	                   {foreach $arr_topics key item}
                                       <option value="{$item.t_id}"{if $arr_checked_values.t_id == $item.t_id} selected="selected"{/if}>{$item.t_name}</option>
                                       {/foreach}
                	               </select>
                                </li>
                                <li>
                	               <input type="checkbox" name="query_only_verified_topcis" id="query_only_verified_topcis" value="1" {if $arr_checked_values.query_only_verified_topcis} checked{/if} />
                                    <label for="query_only_verified_topcis">{$language_label_query_verified_topics}</label>
                                </li>
                            </ul>
                          </li>
                          <li>
                            <h3 id="result_region">{$language_heading_available_datasets}</h3>
                            <ul>
                                <li id="available_maps">{$language_no_data_selected}</li>
                            </ul>
                          </li>
                      </ul>
                  </form>
                </div>
               <div id="mapcontainter">            
                    <div id="map" class="skip"></div>
                </div>
               <p class="skip"><a href="{$map_url}&amp;ajax=1" id="ajax_url"></a></p>
{include(file='js.tpl')}
               <script type="text/javascript">
               /* <![CDATA[ */
                    var arr_bbox = new Array(4);
                    {foreach $arr_map_extent key item}
                        arr_bbox[{$key}] = {$item};
                    {/foreach}
                    new Policies_Ui_Map("{$wms_url}", {$map_projection}, arr_bbox, {$map_max_resolution}, true);
                /* ]]> */
               </script>
{include(file='footer.tpl')}
